Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android platform support #1

Merged
merged 7 commits into from
Dec 21, 2022
Merged

Conversation

moraaar
Copy link

@moraaar moraaar commented Dec 21, 2022

What's new?

  • Added Android platform support to PhysX 5.1.
  • New build preset android-arm64-v8a added. Initial support focused on 64-bit arm8 architecture with NEON SIMD instructions.
  • Support for generating PhysX as either static or dynamic libraries.
  • New android platform readme.

Out of Scope

The following points are considered out of scope, they can be added in the future:

  • Support for PhysX Snippets.
  • Support for Omniverse Visual Debugger (OmniPVD) .
  • Support for other architectures: arm7, x86, x86_64.
  • Support for other SIMD instructions set: SSE.

Known Errors/Limitations

	ELSEIF(TARGET_BUILD_PLATFORM STREQUAL "android")
		SET(RETVAL "android.${ANDROID_ABI}")
  • PhysX Systems that require a CUDA capable GPU are not supported in Android, for example particle system or cloth simulation.

Testing

  • Built PhysX 5.1 successfully on android in debug, checked, profile and release using PX_GENERATE_STATIC_LIBRARIES set to both true and false. The right output binaries were generated in bin/android.arm64-v8a
  • Built cmake install target successfully. It generated the correct output for Android under install/android-29 folder, only including necessary headers for Android.
  • Runtime tested using Open 3D Engine (O3DE) with an early integration branch. The following video shows O3DE running PhysX 5.1 on Android.
    https://user-images.githubusercontent.com/27999040/203624867-6ed19905-d0dc-4dfe-943a-46e584fd9983.mp4

Signed-off-by: moraaar moraaar@amazon.com

Signed-off-by: moraaar <moraaar@amazon.com>
Signed-off-by: moraaar <moraaar@amazon.com>
Signed-off-by: moraaar <moraaar@amazon.com>
Signed-off-by: moraaar <moraaar@amazon.com>
Signed-off-by: moraaar <moraaar@amazon.com>
Signed-off-by: moraaar <moraaar@amazon.com>
…e libraries to be correctly named with the suffix _64, the same as all the other platforms.

Signed-off-by: moraaar <moraaar@amazon.com>
@moraaar moraaar requested review from a team December 21, 2022 15:13
@moraaar moraaar merged commit 7d27bbe into o3de:release/104.1 Dec 21, 2022
@moraaar moraaar deleted the Android_Support branch December 21, 2022 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants